function cesiumBusiness(Container, Cesium) {
    this.Cesium = Cesium;
    this.Container = Container;
    this.viewer = undefined;
}
// Cesium init 初始化
cesiumBusiness.prototype.init = function() {
    this.viewer = new this.Cesium.Viewer(this.Container,{
        //  terrainProvider: Cesium.createWorldTerrain(),
        baseLayerPicker: false, //图层选择器
        animation: false, //左下角仪表
        fullscreenButton: true, //全屏按钮
        geocoder: false, //右上角查询搜索
        infoBox: false, //信息框
        homeButton: false, //home按钮
        sceneModePicker: true, //3d 2d选择器
        selectionIndicator: false, //
        timeline: false, //时间轴
        navigationHelpButton: false, //右上角帮助按钮
        shouldAnimate : true
    });


    // var viewer = new Cesium.Viewer('cesiumContainer', {
    //     terrainProvider: Cesium.createWorldTerrain()
    // });
     /*隐藏左下角的logo*/
    this.viewer.cesiumWidget.creditContainer.style.display = "none";
    this.viewer.scene.globe.depthTestAgainstTerrain = true; //默认为false

    //   //加载esri暗黑地图
    //   var esriLayer = new this.Cesium.ArcGisMapServerImageryProvider({
    //     url: 'http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer'
    // });
    // this.viewer.imageryLayers.addImageryProvider(esriLayer)

    //设置太阳效果.背面为黑
    this.viewer.scene.globe.enableLighting=true;
    // 清除默认双击事件
    this.viewer.screenSpaceEventHandler.removeInputAction(this.Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);

    /*移动设备上禁掉以下几个选项，可以相对更加流畅*/
    if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {
        this.viewer.scene.fog.enable = false;
        this.viewer.scene.skyAtmosphere.show = false;
        this.viewer.scene.fxaa = false;
    }
}
// 导出Cesium全局变量
cesiumBusiness.prototype.exportVariable = function() {
    window.Cesium = this.Cesium;
    window.viewer = this.viewer;
}

export default cesiumBusiness;